use thiserror::Error;

use craftdig_datamodel::message::BehaviorError;

#[derive(Debug, Error)]
pub enum Error {
    // TODO give this more context about the block that we failed to process
    #[error("behavior: {0}")]
    Behavior(#[from] BehaviorError),

    #[error("chunk provider: {0}")]
    ChunkProv(#[from] craftdig_worldgen::errors::Error),

    #[error("not yet implement")]
    Unimplemented,

    #[error("{0}")]
    Other(String),
}
